﻿@model Kunlun.ViewModels.RegisterModel
@{
    ViewBag.Title = "注册";
}
@section Head
{
    <link href="@Url.Content("~/Content/login/Style.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
}
<div id="content">
    <p class="tt">
        创建新帐户</p>
    <p>
        使用以下表单创建新帐户。
    </p>
    @using (Html.BeginForm())
    {
        @Html.ValidationSummary(true, "帐户创建不成功。请更正错误并重试。")
    
        <p>
            注册完成后，该帐号将作为您在本站的通行帐号，您可以享受本站提供的各种服务。</p>
        <dl class="reg">
            <dt>
                @Html.LabelFor(m => m.UserName)</dt>
            <dd>
                @Html.TextBoxFor(m => m.UserName, new { @class = "input1", @maxlength=50 })
                @Html.ValidationMessageFor(m => m.UserName)
            </dd>
            <dd class="alert">
            </dd>
            <dt>
                @Html.LabelFor(m => m.Email)</dt>
            <dd>
                @Html.TextBoxFor(m => m.Email, new { @class = "input1", @maxlength = 50 })
                @Html.ValidationMessageFor(m => m.Email)
            </dd>
            <dd class="alert">
            </dd>
            <dt>
                @Html.LabelFor(m => m.Password)
            </dt>
            <dd>
                @Html.PasswordFor(m => m.Password, new { @class = "input1", @maxlength = 50 })
                @Html.ValidationMessageFor(m => m.Password)</dd>
            <dd class="alert">
                密码必须至少包含 @Membership.MinRequiredPasswordLength 个字符。</dd>
            <dt>
                @Html.LabelFor(m => m.ConfirmPassword)
            </dt>
            <dd>
                @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "input1", @maxlength = 50 })
                @Html.ValidationMessageFor(m => m.ConfirmPassword)
            </dd>
            <dd class="alert">
                请准确填入您的邮箱，在忘记密码，或者您使用邮件通知功能时，会发送邮件到该邮箱。</dd>
            <dd>
                <input type="submit" value="注册新用户" class="loginBtn" /></dd>
        </dl>
  
    }
</div>
